package com.superlc.ssm.modular.sys.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.superlc.ssm.modular.sys.model.SysPermission;
import com.superlc.ssm.modular.sys.dao.SysPermissionDao;
import com.superlc.ssm.modular.sys.service.SysPermissionService;

@Service
public class SysPermissionServiceImpl implements SysPermissionService{

    @Resource
    private SysPermissionDao sysPermissionDao;

    @Override
    public int insert(SysPermission sysPermission){
        return sysPermissionDao.insert(sysPermission);
    }

    @Override
    public int insertSelective(SysPermission sysPermission){
        return sysPermissionDao.insertSelective(sysPermission);
    }

    @Override
    public int insertList(List<SysPermission> sysPermissions){
        return sysPermissionDao.insertList(sysPermissions);
    }

    @Override
    public int update(SysPermission sysPermission){
        return sysPermissionDao.update(sysPermission);
    }
}
